<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>  
    <title>用户登录</title>
    <style>
        #loginForm {
            width: 320px;
            line-height: 2;
        }
        #loginForm label.fieldname {
            width: 90px;
            display: inline-block;
            text-align: right;
            padding-right: 10px;
        }
        .field-validation-error {
            color: red;
        }
    </style>
  </head>
  
  <body>
  	<form action="doLogin" method="post">
    <fieldset id="loginForm">
        <legend>用户登录</legend>
        <div>
           <label class="fieldname">用户名</label>
           <input id="username" type="text" name="username" value="${param.username}"/>
        </div>
        <div>
            <label class="fieldname">密码</label>
            <input type="password" name="password" value="${param.password}" /> 
        </div>
        <div>
            <label class="fieldname">&nbsp;</label>
            <input type="submit" value="登录" />
        </div>
        <c:if test="${!empty error}">
        <div style="color:red;text-align:center;">${error}</div>
        </c:if>
    </fieldset>
    </form>
  </body>
</html>
